package com.itheim.mapper;

import com.itheim.pojo.Clazz;
import com.itheim.pojo.ClazzQueryParem;
import com.itheim.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;

import java.util.List;

@Mapper
public interface ClazzMapper {
    List<Clazz> page(ClazzQueryParem clazzQueryParem);

    @Options(useGeneratedKeys = true, keyProperty = "id")
    void add(Clazz clazz);

    Clazz getinfo(Integer id);

    void update(Clazz clazz);

    List<Student> checkStudent(Integer id);

    void delete(Integer id);

    List<Clazz> list();
}
